package com.bb.flow.service.api;

import com.bb.flow.api.type.ExecuteState;
import com.bb.flow.config.AbstractConfigNode;
import com.bb.flow.config.FlowInfo;

/**
 * @author bigbeard
 * 节点执行状态回调
 */
public interface NodeStateCallback {

    /**
     * 通知
     *
     * @param node         执行的节点
     * @param flowInfo     所在流程
     * @param executeState 执行状态
     */
    void notifyNodeExecuteState(AbstractConfigNode node, FlowInfo flowInfo,
                                ExecuteState executeState);
}
